<template>
	<view class="padb30">
		<stop isBack>
			<block slot="content">用户信息</block>
			<block slot="backText">返回</block>
		</stop>
		<view class="">
			<!-- <sentity class="margin-top" v-model.sync="en.template" model="StreamPointTemplate" label="选择工艺" placeholder="请选择"></sentity> -->
			<stext class="margin-top" v-model="en.name" label="姓名" placeholder="真实姓名"></stext>
			<stext class="margin-top" v-model="en.phone" label="手机" placeholder="常用手机号"></stext>
			<!-- <sswitch class="margin-top" v-model="en.isOff" label="是否休班" placeholder="常用手机号"></sswitch> -->
			<!-- <sdate-time class="margin-top" v-model="text1" label="时间" ></sdate-time> -->
			<spic class="margin-top" v-model="en.pic" label="照片" placeholder="请上传个人照片"></spic>
			<view class="mart3">
				<ssubmit v-model="en" model="machineUsers"></ssubmit>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				en:{
					name:'',
					phone:'',
					pic:'',
					// isOff:false
				},
			}
		},
		methods: {
		},
		created() {
		},
		onLoad(option){
			let id = this.$com.getLocData("user_id")
			let _this = this
			if(id != undefined){
				this.$api.get("/api/machine/get_user_info",{},(res)=>{
					_this.en.id = res.d.wuser.id
					_this.en.name = res.d.wuser.name
					_this.en.phone = res.d.wuser.phone
					_this.en.pic = res.d.wuser.pic
				})
			}
		}
	}
</script>

<style>

</style>
